package tr.edu.metu.is.mega.common.dto;

import javax.validation.constraints.NotNull;

import tr.edu.metu.is.mega.server.entity.Coursestudent;

/**
 * Data transfer class for {@link Coursestudent} entity.
 */
public class CourseStudentDTO extends BaseDTO {

    private static final long serialVersionUID = 987813522869542268L;

    public static final String FIELD_STUDENT_NO = "user.identificationNo";

    public static final String FIELD_STUDENT_NAME = "user.fullName";

    @NotNull
    private CourseDTO course;

    @NotNull
    private UserDTO user;

    /**
     * Default constructor.
     */
    public CourseStudentDTO() {
    }

    /**
     * Returns course.
     * 
     * @return the course
     */
    public CourseDTO getCourse() {
        return course;
    }

    /**
     * Sets course value.
     * 
     * @param course the course to set
     */
    public void setCourse(CourseDTO course) {
        this.course = course;
    }

    /**
     * Returns user.
     * 
     * @return the user
     */
    public UserDTO getUser() {
        return user;
    }

    /**
     * Sets user value.
     * 
     * @param user the user to set
     */
    public void setUser(UserDTO user) {
        this.user = user;
    }

}
